import com.study.common.enumerate.ExceptionInfo;
import org.junit.Test;

/**
 * @Author 谭永超 [www.tanyongchao.tk:8090/SumDome/index]
 * @Date 2018/8/27 15:59
 * @Description
 */
public class test {
    @Test
    public  void test(){
        String reg1 = "[^\\u4e00-\\u9fa5]";

        String str =  "org.springframework.validation.BeanPropertyBindingResult: 1 errors\n" +
                "Field error in object 'user' on field 'telNumber': rejected value [183151701112]; codes [methodInvocation.user.telNumber,methodInvocation.telNumber,methodInvocation.java.lang.String,methodInvocation]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [user.telNumber,telNumber]; arguments []; default message [telNumber]]; default message [Property 'telNumber' threw exception; nested exception is com.study.common.entity.LoginException: 电话号码格式错误]";

        str = str.replaceAll(reg1, "");

        System.out.println(str);
    }
}
